package com.lmf.cloud.service;

import com.lmf.cloud.entity.TAccount;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lmf.cloud.resp.ResultData;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiuMingFu
 * @since 2024-08-01
 */
public interface TAccountService extends IService<TAccount> {


    /**
     * 扣减账户余额
     *
     * @param userId 用户id
     * @param count  金额
     * @return
     * @author LiuMingFu
     * @date 2024/8/1
     */
    ResultData<Boolean> decreaseAccount(Long userId, Integer count);
}
